package com.huawei.esdk.uc.jna.struct;

import java.util.ArrayList;
import java.util.List;

import com.huawei.esdk.uc.jna.Constants;
import com.sun.jna.Structure;

public class STImMsgItem extends Structure
{

    public int chatType;

    public byte[] origin = new byte[Constants.STRING_LENGTH];

    public byte[] target = new byte[Constants.STRING_LENGTH];

    public byte[] content = new byte[300];

    public byte[] rcv_time = new byte[Constants.STRING_LENGTH];

    public byte[] name = new byte[Constants.STRING_LENGTH];

    public byte[] msgid = new byte[Constants.STRING_LENGTH];

    @Override
    protected List<String> getFieldOrder()
    {
        ArrayList<String> list = new ArrayList<String>();
        list.add("chatType");
        list.add("origin");
        list.add("target");
        list.add("content");
        list.add("rcv_time");
        list.add("name");
        list.add("msgid");
        return list;
    }

}
